import Cookies from 'js-cookie';

const TokenKey = 'Admin-Token';
const RoleKey = 'admin';

export function getToken() {
	return Cookies.get(TokenKey);
}

export function setToken(token: string) {
	return Cookies.set(TokenKey, token);
}

export function removeToken() {
	return Cookies.remove(TokenKey);
}

export function getRoles() {
	return Cookies.get(RoleKey);
}

export function setRoles(role: string) {
	return Cookies.set(RoleKey, role);
}

export function removeRoles() {
	return Cookies.remove(RoleKey);
}
